package com.code.user.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.code.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账号表
 * </p>
 *
 * @author Yan
 * @since 2023-04-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_account")
@ApiModel(value="AccountDO对象", description="账号表")
public class AccountDO extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联账号ID")
    private String unionId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "账号是否可用，默认 1 为可用，0 不可用")
    private Boolean enabled;

    @ApiModelProperty(value = "平台来源")
    private String source;

    @ApiModelProperty(value = "上一次登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "IP地址，使用无符号的32位整数存储")
    private String ipAddress;


}
